using IM.Easy.Infrastructure.Query;
using System.ComponentModel.DataAnnotations;


namespace IM.Easy.SystemServices.Dtos.Role
{
    /// <summary>
    /// 角色信息表查询实体
    /// </summary>
    public class SysRoleQueryDto : QueryBase
    {
        /// <summary>
        /// 是否处于活动状态
        /// </summary>
        public bool? IsActive { get; set; }

        public string Name { get; set; }
    }

    /// <summary>
    /// 角色信息表dto
    /// </summary>
    public class SysRoleDto
    {
        /// <summary>
        /// 是否处于活动状态
        /// </summary>
        public bool IsActive { get; set; }
        /// <summary>
        /// 是否系统内置
        /// </summary>
        public bool IsSystem { get; set; }
        /// <summary>
        /// 唯一标识
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 角色描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 排序顺序
        /// </summary>
        public int Order { get; set; }
        /// <summary>
        /// 角色编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string Name { get; set; }
    }
}
